using System;
using System.Globalization;
using ComponentFactory.Krypton.Toolkit;

namespace RaGE_JD
{
    public partial class MsgAsst : KryptonForm
    {
        public MsgAsst()
        {
            InitializeComponent();
        }

        private void BtnMsgAsstOKClick(object sender, EventArgs e)
        {
            // Transfer Encoded to textbox
            var main = (MainWindow)Owner;
            main.UpdateMsg(((txtMsgAsst.TextLength * 2) + 2).ToString(CultureInfo.InvariantCulture), txtMsgAsst.Text);
        }

        private void BtnMsgAsstCancelClick(object sender, EventArgs e)
        {
            Dispose();
        }
    }
}